import service from "@/request/request.js"
// 获取宠物信息列表
export const GetShopGoodsMessageService = (pageNum, pageSize,keyword) => {
    return service({
        method: 'GET',
        url: '/admincharge/shopgoods/',
        headers: {
            'Authorization': 'Bearer'+" " + localStorage.getItem('admin_token')
        },
        params: {
            ...keyword,
            currentPage: pageNum,
            pageSize: pageSize
        },
    })
}

// 添加表单的数据
export const addShopGoodsService = (form) => {
    return service({
        method: 'POST',
        url: '/admincharge/shopgoods/',
        data: form
    })
}

// 删除一份宠物信息数据
export const deleteShopGoodsNoticeUrlService = (Id) => {
    return service({
        method: 'POST',
        url: '/admincharge/shopgoods/' + Id + '/',
    })
}

// 批量删除
export const deleteShopGoodsNoticeUrlsService = (Ids) => {
    return service({
        method: 'POST',
        url: '/admincharge/shopgoods/deletemany/',
        data: Ids
    })
}
// 编辑
export const editShopGoodsMessageService = (MessageForm) =>{
    return service({
        method:'POST',
        url:'/admincharge/shopgoods/edit/',
        data:MessageForm
    })
}